package com.beiming.ndkdemo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // Example of a call to a native method
        sample_text.text = NdkUtil().stringFromJNI()
        Log.d(this.javaClass.simpleName,NdkUtil().stringFromJNI())
        Log.d(this.javaClass.simpleName,NdkUtil().helloWorld())

        Log.d(this.javaClass.simpleName,NdkTest().strFromJni())

        bottom.setOnClickListener {
            startActivity(Intent(this,LifeActivity::class.java))
        }
    }

}
